<template>
  <div class="mains">
    <div class="first">
      <div class="titles">高标准农田 项目建设工程</div>
      <div class="amountmain">
        <div class="amount">
          <div class="num">1000</div>
          <div class="text">总数</div>
        </div>
      </div>
    </div>
    <div class="two">
      <div class="titles">高标准农田 政区分布</div>
      <div class="echarts">
        <echart :options="option1"/>
      </div>
    </div>
    <div class="three">
      <div class="titles">高标准农田 项目建设年度投资情况</div>
      <div class="qushi">
        <div class="tittext">趋势</div>
        <div class="details">
          <div class="text">项目投资同比上涨</div>
          <div class="num">48%</div>
        </div>
      </div>
      <div class="echarts">
        <echart :options="option2"/>
      </div>
    </div>
  </div>
</template>

<script>
import Echart from '@/components/echart/Echart.vue';
import {lefttopEchart,leftbotEchart} from '../echarts/echart'

export default {
  components: { Echart },
  data() {
    return {
      option1: undefined,
      option2: undefined
    };
  },

  created() {
    this.setEcharts();
  },
  mounted() {
    
  },

  methods: {
    setEcharts() {
      this.option1 = lefttopEchart();
      this.option2 = leftbotEchart();
    }
  },
};
</script>

<style lang="scss" scoped>
.mains {
  margin-top: 117px;
  height: calc(100% - 117px - 30px);
  margin-left: 20px;
  .titles {
    width: 100%;
    height: 36px;
    line-height: 36px;
    font-size: 24px;
    font-family: ysbt;
    background: url(~assets/images/title_bg.png) no-repeat;
    background-size: 100% 100%;
    padding-left: 15px;
    text-shadow: 0 0 10px #fff,0 0 20px #1862b4,0 0 30px #1862b4;
  }
  .first {
    .amountmain {
      width: 100%;
      padding: 30px 0;
      .amount {
        width: 275px;
        height: 143px;
        background: url(~assets/images/firstbg.png) no-repeat;
        background-size: 100% 100%;
        text-align: center;
        margin: 0 auto;
        .num {
          font-size: 64px;
          font-weight: bold;
        }
        .text {
          font-size: 24px;
        }
      }
    }
  }
  .two {
    height: 28%;
    .echarts {
      margin-top: 10px;
      height: calc(100% - 36px - 10px);
    }
  }
  .three {
    height: calc(100% - 28% - 259px);
    .qushi {
      width: calc(100% - 30px);
      height: 50px;
      background: url(~assets/images/qushi.png) no-repeat;
      background-size: 100% 100%;
      display: flex;
      line-height: 50px;
      margin-top: 20px;
      margin-left: 15px;

      .tittext {
        width: 70px;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        padding-left: 0px;
        opacity: .6;
      }
      .details {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        .text {
          font-size: 16px;
          color: #7EBBFF;
        }
        .num {
          font-size: 24px;
        }
      }
    }
    .echarts {
      height: calc(100% - 36px - 50px);
    }
  }
}
</style>